﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.InventoryDomain
{
   public class SupplierGroup
    {
        #region Properties
        public int ID { get; set; }
        public string Code { get; set; }
        public string Group { get; set; }
        public string Descripton { get; set; }
        public string Notes { get; set; }
        #endregion

        #region ForeignKeyProperties
        public int ParentID { get; set; } 
        #endregion

        #region NavigationalProperties
        [ForeignKey("ParentID")]
        public virtual SupplierGroup Parent { get; set; }
        public virtual ICollection<SupplierGroup> Children { get; set; }
        public virtual ICollection<Supplier> Suppliers { get; set; }

        #endregion

    }
}
